package com.project.personnel.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.personnel.entity.Hr;
import com.project.personnel.dao.HrMapper;
import com.project.personnel.server.RespBean;
import com.project.personnel.service.HrService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author diaominyh
 * @since 2022-12-12
 */
@Service
public class HrServiceImpl extends ServiceImpl<HrMapper, Hr> implements HrService {
    @Resource
    private HrMapper hrMapper;

    @Override
    public boolean updatePwd(String pwd, int id) {
        return hrMapper.updatePwd(pwd, id);
    }

    @Override
    public List<Hr> getHrByname(String name) {
        return hrMapper.getHrByname(name);
    }
}
